const state = {
  cart: []
}

const mutations = {
  push(state, product) {
    state.cart.push(product)
  }
}

const actions = {
  push(ctx, product) {
    ctx.commit('push', product)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}